import { BaseService } from './base';
import Article from '../model/article.model';
import { StorageFactory } from './storage';
import { Service } from 'ts-express-restful';

@Service()
export class ArticleService extends BaseService<Article> { 
    constructor() { 
        const storage = StorageFactory.getDefault<Article>('article');
        super(storage, Article);
    }
}